﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class DistributionService
    {
        private readonly DistributionController _distributionController = new DistributionController();

        #region [Distribution_GetByAll]

        public DataTable Distribution_GetByAll()
        {
            return _distributionController.Distribution_GetByAll();
        }

        #endregion

        #region [Distribution_GetById]

        public DataTable Distribution_GetById(int id)
        {
            return _distributionController.Distribution_GetById(id);
        }

        #endregion

        #region [Distribution_Insert]

        public void Distribution_Insert(DistributionInfo distribution)
        {
            _distributionController.Distribution_Insert(distribution);
        }

        #endregion

        #region [Distribution_Update]

        public void Distribution_Update(DistributionInfo distribution)
        {
            _distributionController.Distribution_Update(distribution);
        }

        #endregion

        #region [Distribution_Delete]

        public void Distribution_Delete(int id)
        {
            _distributionController.Distribution_Delete(id);
        }

        #endregion
    }
}